<script setup lang="ts">
//拼装处理外部图片
import DefaultImg from "@/assets/default_img.svg";
import Img from "@/components/block/img.vue";
type Data = string | boolean;

defineProps<{ img: Data; }>();
</script>

<template>
  <img :src="img" v-if="typeof img === 'string'" lazy="loaded" />
  <Img :img="DefaultImg" v-else />
</template>

<style scoped lang="less">
//img {
//  display: initial;
//}
</style>
